package com.budwk.app.miniapp.models.dto;

import com.budwk.app.sys.models.ShequUser;
import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.util.Map;


@Data
@Comment("通讯服务记录")
public class SqfwServicerecordDTO implements Serializable {
    private static final long serialVersionUID = 1L;


    private String customer_name;

    private String customer_phone;

    private String type;

    private String customer_need;

    private Integer app_type;

    private String user_id;


    private String hzqd;

    private String province;

    private String city;


    private String district;


    private String county;


    private String community;

    private String rallyId;

    private boolean cloudTransFlag;

    private String localAudioTransText;

    private String companyName;


    private String recording_text;

    private String service_name;


    private String service_phone;


    public SqfwServicerecordDTO(){

    }


    public SqfwServicerecordDTO(ShequUser user,String rallyId,String title,String content) {
        this.service_name = user.getUsername();
        this.service_phone = user.getLoginname();
        this.customer_name = user.getUsername();
        this.customer_phone = user.getLoginname();
        this.type = "12345";
        this.customer_need = title;
        this.app_type = 7;
        this.user_id = user.getId();
        this.hzqd = "祥云小助";
        this.province = user.getProvince();
        this.city = user.getCity();
        this.district = user.getDistrict();
        this.county = user.getCounty();
        this.community = user.getCommunity();
        this.rallyId = rallyId;
        this.cloudTransFlag = false;
        this.localAudioTransText = content;
        this.recording_text = content;
        this.companyName = companyName;
    }
}
